package com.shop.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shop.common.ResponseResult;
import com.shop.entity.Goods;

import java.util.List;

public interface GoodsService {
    public List<Goods> selectAll();
    public ResponseResult selectPage(Integer pagesize, Integer pagenum, String query);
    public ResponseResult addgoods(Goods goods) throws Exception;
    public ResponseResult updateGoods(Integer id,Goods goods) throws Exception;
    public ResponseResult deleteGoods(Integer id) throws Exception;
    public ResponseResult selectOne(Integer id);
}
